package org.dromara.system.domain.bo;

import org.dromara.common.tenant.core.TenantEntity;
import org.dromara.system.domain.SysuserBindingSchools;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户绑定校区业务对象 sysuser_binding_schools
 *
 * @author Gjb
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysuserBindingSchools.class, reverseConvertGenerate = false)
public class SysuserBindingSchoolsBo extends TenantEntity {

    /**
     * 人员类别
     */
    @NotBlank(message = "人员类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 校区id
     */
    @NotBlank(message = "校区id不能为空", groups = { AddGroup.class, EditGroup.class })
    private long schoolCampusId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
